﻿using System.Web.Mvc;

namespace Capacitacion.Infraestructure
{
    public static class MyHelpers
    {
        public static string Image(this HtmlHelper helper, string src, string altText)
        {
            var builder = new TagBuilder("img");
            builder.MergeAttribute("src", src);
            builder.MergeAttribute("alt", altText);
            return builder.ToString(TagRenderMode.SelfClosing);
        }
    }
}